Pharo6 supported syntax regression

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pharo6 supported syntax regression

Peter Uhnak
Hi,

apparently in Pharo 6 pragma attributes can no longer be symbols without hash?

In Pharo5 I could do

method
        <attr: Something>

and it would compile it as symbol

In Pharo6 this is syntax error.

I am not asking for resolution either direction (although I guess #Something should be canonical), it is just odd to me that the syntax would change (and maybe some code where people like me forgot to add hash sign will break).

Peter

Reply | Threaded
Open this post in threaded view
|

Re: Pharo6 supported syntax regression

Nicolai Hess-3-2


2017-03-13 16:47 GMT+01:00 Peter Uhnak <[hidden email]>:
Hi,

apparently in Pharo 6 pragma attributes can no longer be symbols without hash?

In Pharo5 I could do

method
        <attr: Something>

and it would compile it as symbol

In Pharo6 this is syntax error.

I am not asking for resolution either direction (although I guess #Something should be canonical), it is just odd to me that the syntax would change (and maybe some code where people like me forgot to add hash sign will break).

Actually, I think the behavior in Pharo5 was broken, it should not compile, and we fixed it for Pharo 6.

 

Peter