Re: Init variable on declare
- Posted by c.k.lester <euphoric at cklester.com> Apr 04, 2007
- 500 views
Jason Gade wrote: > c.k.lester wrote: > > amux wrote: > > > I dream about this. > > > func name -- function > > > end name -- end function > > > proc name2 -- procedure > > > end name2 -- end procedure > > RobC, how much of a speed increase could we expect in execution if we > > reduced > > the tokens from 'function' to 'func' and 'procedure' to 'proc?' The > > interpreter > > would be looking for 50% less text for each token (66% for > > procedure)!!!!!!!!!! > Yuck! That's one of the things I like about Euphoria as-is. Not that it's > verbose, > but for some reason it is more pleasing to me the way it is. > If you want to shorten the tokens you might as well just use the C-like > braces! If it was noticeably faster, I was going to suggest 'f' and 'p' instead, but I like your idea better. Braces!!! proc and func is still very readable, and if it gives a speed increase, why not adopt it? procedure do_nuttin() end procedure proc do_nuttin() end proc If we could get a 50% speed increase over current behavior, wouldn't that be wunnerful?!?! 8)