j-woz / exm-issues

Automatically exported from code.google.com/p/exm-issues
0 stars 0 forks source link

Feature: mainapp keyword #672

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 mainapp mockdock;

would expand to: 

 (int v) mockdock(string A[]) "mockdock" "0.0" "mockdock_wrap";

For common main-wrapping case.  

Proposed by Wilde.

Original issue reported on code.google.com by wozniak....@gmail.com on 24 Apr 2014 at 8:46

GoogleCodeExporter commented 9 years ago
Are you still wanting to integrate this into the language or is this just going 
to be the genleaf code generation approach?

If anything we should come up with a cleaner syntax for Tcl or other foreign 
functions.

Original comment by tim.g.ar...@gmail.com on 14 May 2014 at 2:30

GoogleCodeExporter commented 9 years ago
This is a lot about automating the compiler tools outside the language and 
things like that.  Wilde wants it to be as simple as "mainapp mockdock".

Original comment by wozniak....@gmail.com on 19 May 2014 at 3:54

GoogleCodeExporter commented 9 years ago
If we're to integrate that as a canonical part of the language,  I think the 
lack of symmetry with app/tcl functions is a problem for language design that 
will affect expressiveness, learnability, etc.  E.g. why do some functions 
specify types and some don't, why do app functions automatically convert and 
unpack arrays, but mainapp functions don't.  It seems to me that it would be 
better to use the same syntax as the app function.  If we're concerned about 
verbosity, it would make sense to have matching shorthands for app/mainapp.

Original comment by tim.g.ar...@gmail.com on 19 May 2014 at 4:18

GoogleCodeExporter commented 9 years ago

Original comment by wozniak....@gmail.com on 27 Jun 2014 at 7:25

GoogleCodeExporter commented 9 years ago

Original comment by wozniak....@gmail.com on 6 Nov 2014 at 4:32

GoogleCodeExporter commented 9 years ago

Original comment by wozniak....@gmail.com on 12 Mar 2015 at 2:35