As I said, I don't like the space delimited "on". I prefer on("state,changed", cb) or on.state,changed(cb) or on:state,changed(cb) or on: state,changed(cb)
I already said the "create" is an extremely bad idea, raster concurs. Variable manipulation is probably also a bad idea (as I said), though I can see some uses for it. I'd still start with *not* supporting that and maybe add it in the future. Otherwise snippets are just normal. -- Tom. On 10/03/16 08:28, Yakov Goldberg wrote: > Thank you for all comments about indentation! :) > > Could you please direct part of your discussion passion to callback's > and snippet's style :) > > > On 03/08/2016 06:14 PM, Yakov Goldberg wrote: >> Hello everyone, >> I had discussions with Tom and as a result updated wiki page. >> >> You can find it here: >> https://phab.enlightenment.org/w/ui_builders_format/ >> >> >> Most things are clear there are several questions to be discussed: >> >> * fixed indentation (4 spaces) or not fixed >> * Widget vs Elm.Widget: all widgets - are they Elm Widgets only and thus >> "Elm" can be skipped or we want to use namespace >> * button vs Button: starts with capital letter? >> * callbacks format - options: >> Button() >> on clicked("callback_name") >> on("clicked", "callback_name") >> >> #and whether allow or not property modification and object creations >> in callbacks: >> on("clicked", "callback_name", box_1.visible = true, #and more ui >> updates) >> on clicked,double(box_1.visible = true) >> on clicked,double(create ("window_2", null)) >> >> * snippets support - please read in wiki >> https://phab.enlightenment.org/w/ui_builders_format/#snippets >> >> >> Regards >> Yakov >> >> >> ------------------------------------------------------------------------------ >> Transform Data into Opportunity. >> Accelerate data analysis in your applications with >> Intel Data Analytics Acceleration Library. >> Click to learn more. >> http://makebettercode.com/inteldaal-eval >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> >> > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel