Re: Syntactic sugar

new topic     » goto parent     » topic index » view thread      » older message » newer message
begin said...

hi,

would it be possible to have '#' as an alternative for '!=' ? it's easier to read and less typing.

phix maybe?

richard

The # is already in use by OE

  • At the moment # is used for to mean "hexadecimal"
? #FE 
--> 256 

That suggests that:

-- suggested syntax 
 
? #FE # #FC 
--> 1 
 
-- compared to existing syntax 
 
? #FE != #FC 
--> 1 
 
  • #! is the Unix shebang comment; also in use by OE
  • # is used in conventional languages to mean "comment"

My observations:

  • not a trivial change to the OE syntax
  • not sure the syntactic sugar is an improvement
  • quick search does not reveal # is used to mean != elsewhere

Need more convincing that # needs another meaning in OE beyond the existing meanings.

_tom

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

Search



Quick Links

User menu

Not signed in.

Misc Menu