Nasal for C++ programmers: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (just to make Philosopher's point :-))
mNo edit summary
Line 55: Line 55:


i.e. if we want to say "this is X," we use XML; if we want to say "do Y", we use NASAL. A drop-down menu is declarative, but the actions associated with each menu item are imperative, and could be NASAL code snippits. The keymap is declarative, but the actions associated with each keystroke are imperative, and again, could be NASAL code snippits embedded in XML.</nowiki><ref>{{cite web |url=http://www.mail-archive.com/flightgear-devel@flightgear.org/msg18993.html|title=<nowiki>Time to Refactor (was Re: [Flightgear-devel] Re: Nasal integration docs)</nowiki>|author=<nowiki>David Megginson</nowiki>|date=<nowiki>Wed, 26 Nov 2003 15:12:46 -0800</nowiki>}}</ref>|<nowiki>David Megginson</nowiki>}}
i.e. if we want to say "this is X," we use XML; if we want to say "do Y", we use NASAL. A drop-down menu is declarative, but the actions associated with each menu item are imperative, and could be NASAL code snippits. The keymap is declarative, but the actions associated with each keystroke are imperative, and again, could be NASAL code snippits embedded in XML.</nowiki><ref>{{cite web |url=http://www.mail-archive.com/flightgear-devel@flightgear.org/msg18993.html|title=<nowiki>Time to Refactor (was Re: [Flightgear-devel] Re: Nasal integration docs)</nowiki>|author=<nowiki>David Megginson</nowiki>|date=<nowiki>Wed, 26 Nov 2003 15:12:46 -0800</nowiki>}}</ref>|<nowiki>David Megginson</nowiki>}}
{{cquote|<nowiki>Completely agree.  Although it should be pointed out that there's
significant gray area between the two extremes.  Some of the existing
commands (like property-adjust, with its handy wrap and clamp options)
are simpler than the equivalent Nasal code for typical usages.
Likewise, sometimes declaring your data in Nasal can save a lot of
work interpreting that data on the C++ side.</nowiki><ref>{{cite web |url=http://www.mail-archive.com/flightgear-devel@flightgear.org/msg19002.html|title=<nowiki>Re: Time to Refactor (was Re: [Flightgear-devel] Re: Nasal integration docs)</nowiki>|author=<nowiki>Andy Ross</nowiki>|date=<nowiki>Wed, 26 Nov 2003 16:35:23 -0800</nowiki>}}</ref>|<nowiki>Andy Ross</nowiki>}}


<references/>
<references/>

Navigation menu