[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: int vs. struct
Greg Miller wrote:
>
> I'd strongly favor using basic types for any standardized interface...
> this has a lot in common with the OpenGL vs. DirectX debate of a couple
> of years ago, you get greater speed and flexibility from basic types
> than from structs.
Slightly better speed, yes - but greater flexibility? No way. Software
done with ADT's/OOP is radically more adaptable. Without proper
abstractions, small changes in data representation that should be "local
only" set off huge ripple effects in large programs.