Suggestion for Euphoria 2.3, 2.2a, 2.2.1, whatever

new topic     » topic index » view thread      » older message » newer message

I noticed several things that C has that Euphoria doesn't. Among these are
structs and switch statements. It should be easy to implement a struct like:

struct thisStruct do
  integer a, b
  sequence st
end struct

And as for the switch statements:

switch a do
  case 1 do
    puts(1,"a is 1\n")
  elsif 2 do
    puts(1,"a is 2\n")
  else
    puts(1,"a is some other value\n")
  end case
end switch

And one feature that even secondbestlanguageintheworld Java doesn't have!
Using plain old math operators on sequences. Maybe you could say, 'st =
"hi"' instead of the current 'equals(st,"hi")' or 'compare(st,"hi")=0'. This
would be much clearer.

  - Thx for listening

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu