For the other hand, I consider @Js notation is ugly. Is it not supposed that Fantom has support for Fantom? Why we have to mark a class for Javascript generator? Can't we generate Javascript for all classes?
Completely agree with you about @Js facet and there was a big discussed about it: #1111.
XanThu 12 Jan 2012
Mmm... ok. I don't know what were facet until you answer me.
About @Js, the beauty of the language is important thing I think (and I think it's good brian do)
Thanks a lot, Xan.
DanielFathThu 12 Jan 2012
While it's true Fantom could port all classes to JavaScript, the whole runtime would be several MB big which is too big for any sane JavaScript. So brian and andy decided only some things belong in the JS (like sys) , while others don't (like inet).
Xan Wed 11 Jan 2012
Hi,
In http://fantom.org/doc/docIntro/HelloWorld.html the example uses @Opt. What is this?
For the other hand, I consider @Js notation is ugly. Is it not supposed that Fantom has support for Fantom? Why we have to mark a class for Javascript generator? Can't we generate Javascript for all classes?
Thanks a lot, Xan.
Yuri Strot Wed 11 Jan 2012
@Opt
means command line option. Seeutil::Opt
andutil::AbstractMain
for details.Completely agree with you about
@Js
facet and there was a big discussed about it: #1111.Xan Thu 12 Jan 2012
Mmm... ok. I don't know what were facet until you answer me.
About @Js, the beauty of the language is important thing I think (and I think it's good brian do)
Thanks a lot, Xan.
DanielFath Thu 12 Jan 2012
While it's true Fantom could port all classes to JavaScript, the whole runtime would be several MB big which is too big for any sane JavaScript. So brian and andy decided only some things belong in the JS (like sys) , while others don't (like inet).
Xan Fri 13 Jan 2012
Mmm, thanks for explanation.