مقايسه Delphi با C#
دوست عزیز آقای جواد رحمت زاده خواستار مقایسه دلفی و سی شارپ بودن که ما هم لبیک گفتیم به فرمایششون ...
اين روزها بحث اينكه C# بهتراست يا Delphi در تمامي مجامل برنامه نويسان داغ داغ هست!
حالا براي اينكه منم در اين زمينه يك كمكي به شما Delphi كارا بكنم كه كم نياريد يك ليستي در پايين آوردم كه امكانات اين دو محصول رو با هم مقايسه ميكنه خودتون ببينيد و مقايسه كنيد!!!
امكاناتي كه C# دارد و Delphi ندارد:
- foreach
- operators using, lock, checked and unchecked
- block scoped variables
- case statements with strings
- assembly internal classes
- namespaces can span code units
- implicit array dimensioning: int[] a = new int{1,2,3};
- ternary operator ( ? : )
- can use classes from namespaces without importing the whole namespace
- circular references are possible
- try..catch..finally
- assignment operators (+=, ++, -=, etc)
- multi-file assemblies
- You don’t need to distribute Borland.Delphi.dll
امكاناتي كه Delphi دارد و C# ندارد:
- sub-range types
- enums and sets are first-class types
- class type support
- virtual constructors
- virtual class methods
- class references
- nested procedures
- non-default index properties
- can defines constant arrays and records
- resourcestrings
- default parameters
- variants
- arrays with non-integral subscripts
- sets with more than 64 elements
- message handlers
- unions (variant records)
- untyped parameters
- const parameters
- class helpers
- smart linker
- named constructors
- array properties
- unmanaged exports
- super fast single pass compiler, compiling any project faster than C#, using less memory at the same time.
به نظر منكه فقط مورد 24 Delphi به همه خصوصيات C# مي ارزه ;-). خوب پس ديگه شك نكنيد كه Delphi بهتر از C# هست!!!
البته این مقایسه مربوط به زمان دلفی ۹ هستش و دلفی ۱۰ و ۱۱ که ویژگی های خیلی بیشتری به خودشون اختصاص دادن در اینجا لحاظ نشده است که اگر شود چه شود !!!
البته مطالب فوق از وبلاگ دوست بسیار عزیزم جناب صادق علوی زاده هستش : http://delphi.rayanir.com