[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Scripting language takes a silicon turn
- From: LEGO <luis.ontanon@...>
- Date: Wed, 25 Jan 2006 20:13:34 +0100
switch as a different construct makes sense in C because a computed
jump is (much) faster than a chain of if() else if() ... .
It makes little or no sense in languages like lua or perl as they have
both associative arrays and variables can contain references to
subroutines. So syntactically the functionality can be archived by
other means. (see the example in previous mail)
BTW, I did not understand the sarcasm neither.
Luis
On 1/25/06, Walter Cruz <walter.php@gmail.com> wrote:
> Ben:
>
> Is switch much C-Like ?!
>
> (I don't write C code - I don't understand the sarcasm. Sorry.)
>
> :(
>
> []'s
> - Walter
--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan
- References:
- Scripting language takes a silicon turn, Vijay Aswadhati
- Re: Scripting language takes a silicon turn, Chris Marrin
- Re: Scripting language takes a silicon turn, Keith Wiles
- Re: Scripting language takes a silicon turn, Alen Ladavac
- Re: Scripting language takes a silicon turn, mnewberry
- Re: Scripting language takes a silicon turn, Tom Reahard
- Re: Scripting language takes a silicon turn, Brian Weed
- Re: Scripting language takes a silicon turn, Walter Cruz
- Re: Scripting language takes a silicon turn, Ben Sunshine-Hill
- Re: Scripting language takes a silicon turn, Walter Cruz