Ryan,
Inline variable declarations are a possibility. There are a number of
different syntaxes that are possible.
For example, there isn't really a need to use the word "var" in the for loop
example. For x: integer := 0 to 100 do is non ambiguous.
The most powerful example is to use no syntax at all - using techniques
we've labeled "type algebra", it is theoretically possible for the compiler
to infer the correct type of a variable by how it is used. Not a typeless
var like variants, but a strongly typed variable whose type is a best fit
for how it is used. More research is needed here.
-Danny
from RYAN
delphi is something else :) many thanks for Delph for CE.
how about add add a inline variable declaration? it is possible I did it
in
my pascal script interpreter I used in my program it is so nice look!:
for var t:integer=0 to 100 do begin
var a:integer=0;
a+=2;
end;
I know delphi have optimization and no need for this also refactoring
allow
people to declare their variable easily,,, but I believe after alongtime
it
is a requirement, like C most of times I want to do this and it not too
bad, i know delphi do all optimizations and original syntax of delphi with
it's optimization it much more better than this,,, :)) inline variable
declaration, I did it in my pascal script in which Framework I designed...
!!!
:) thanks for your CF Delphi .and thanks for your replies,
regards.
Ryan.
یک سوال و یک جواب! دانی به نظر من یکی از بهترین و در حقیقت جزو ده برنامه نویس اول دنیا و استاد بزرگ برنامه نویسی است.!!! ایده هایی که توی ذهن ماها پیدا میشه کمک بزرگیه در حقیقت می تونیم با طرح اون به نتیجه برسیم... آیا دلفی را دوست دارید/ به یاریش بشتابید...
بورلند دوستان!
امروز وقت بیداری است! :) اساتید محترم! آقایان اینپرایز! کرامتی و سایرین... به جای پشت کردن به دلفی سنگر رو پر نگه دارید تا شرکت مورد علاقه ی همه ی ما زنده بمونه!