{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/11609","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/11609/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/11609/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/11609/events","html_url":"https://github.com/flutter/flutter/issues/11609","id":250080704,"number":11609,"title":"Feature request: Support JSX like syntax inside dart code.","user":{"login":"cbazza","id":13589599,"avatar_url":"https://avatars3.githubusercontent.com/u/13589599?v=4","gravatar_id":"","url":"https://api.github.com/users/cbazza","html_url":"https://github.com/cbazza","followers_url":"https://api.github.com/users/cbazza/followers","following_url":"https://api.github.com/users/cbazza/following{/other_user}","gists_url":"https://api.github.com/users/cbazza/gists{/gist_id}","starred_url":"https://api.github.com/users/cbazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbazza/subscriptions","organizations_url":"https://api.github.com/users/cbazza/orgs","repos_url":"https://api.github.com/users/cbazza/repos","events_url":"https://api.github.com/users/cbazza/events{/privacy}","received_events_url":"https://api.github.com/users/cbazza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":90,"created_at":"2017-08-14T16:16:38Z","updated_at":"2018-02-13T01:49:15Z","closed_at":null,"author_association":"NONE","body":"It would be great if instead of the current way of building widgets you could add JSX like capabilities. I mean add tiny syntactic sugar to enable XML like constructs inside dart code. It just makes code so much easier to read/develop/debug/maintain and also easier for powerful GUI builders to integrate with editable code.\r\n\r\nCarlos.\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/365124720","html_url":"https://github.com/flutter/flutter/issues/11609#issuecomment-365124720","issue_url":"https://api.github.com/repos/flutter/flutter/issues/11609","id":365124720,"user":{"login":"cbazza","id":13589599,"avatar_url":"https://avatars3.githubusercontent.com/u/13589599?v=4","gravatar_id":"","url":"https://api.github.com/users/cbazza","html_url":"https://github.com/cbazza","followers_url":"https://api.github.com/users/cbazza/followers","following_url":"https://api.github.com/users/cbazza/following{/other_user}","gists_url":"https://api.github.com/users/cbazza/gists{/gist_id}","starred_url":"https://api.github.com/users/cbazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbazza/subscriptions","organizations_url":"https://api.github.com/users/cbazza/orgs","repos_url":"https://api.github.com/users/cbazza/repos","events_url":"https://api.github.com/users/cbazza/events{/privacy}","received_events_url":"https://api.github.com/users/cbazza/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T01:49:15Z","updated_at":"2018-02-13T01:49:15Z","author_association":"NONE","body":"> Nice job with the transpiler cbazza\r\n\r\n@Rockvole, thank you.\r\n\r\n>  I appreciate your work for the community and the people who want to build UIs that way, but I really hope I'm never forced to use anything like that in Flutter :-(((\r\n\r\n@zoechi, thank you. Yes, it's just another option for people who love JSX to use. If that's not your thing cool continue doing as you are doing, nothing changes there.\r\n\r\n> I don't think it's necessary to invent new JSX syntax to support Flutter patterns.\r\n\r\n@alexkrolick, yes you can use render props for the named parameters but there is nothing you can do about the positional parameters. The key was that I didn't want to hard code anything in the transpiler so that it would work for everything.\r\n\r\n> I still think, as a newcomer to Flutter with some experience with Angular, React, etc., that the regular Dart way, and more in the Dart 2.0, is better than this DSX. It just makes more sense than some XML and CSS-ish parameters. \r\n\r\n@tenhobi, great use that then, obviously DSX is not for everyone. \r\n\r\n> If I had the choice, I would stick with the present model.\r\n\r\n@b-strauss, this is not a replacement, it's an option for people that like JSX.\r\n\r\n> There is love and hate, but most opinion diverge on the usefulness of JSX over plain Dart.\r\n\r\n@lukaspili, DSX is for React Native people that love JSX, if you don't see its benefits, don't use it. It's not DSX versus plain Dart. It's DSX vs. JSX, the closer the 2 are the better.\r\n\r\n> The great news is that even is this was adopted by the Flutter team (which isn't likely based on this thread) no one would be FORCED to use it. It's an OPTION. I don't understand why it's so emotionally charged that some people might like writing code with a syntax you don't like...\r\n\r\n@tehfailsafe, thank you for listening !!! You hit the nail on the head why such huge resistance to something that will make React Native people really happy.\r\n\r\n> I don't care what other people like or don't like. But I care about features that help me progress with my application. Resources are limited, and I would rather have a proper video/stream player, native child views, and some vector graphics format.\r\n\r\n@b-strauss, Once React Native fans move to Flutter there will be tonnes of people to help out on these other needed things. Priority 1 is to steal mind share from React Native and make it as simple as possible for React Native people to move over.\r\n\r\n> Flutter on the other hand has no markup language. I have yet to see a reason to invest resources into something that is less dynamic and less expressive.\r\n\r\n@b-strauss, How is DSX 'less dynamic' and 'less expressive' than plain Dart? DSX is Dart didn't you try the transpiler.\r\n\r\n@yuriy-manifold, thank you.\r\n\r\n> The question is not 'is JSX helpful for React?' the question is 'is something like JSX helpful for Flutter?'.\r\n\r\n@b-strauss, off course it is. it is not helpful for current Flutter devs but it is very helpful for designers that can output CSS from their tools, it is very helpful for people vested in the React Native platform. \r\n\r\n@alexkrolick, very good observations.\r\n\r\n"}}
{"actor":{"display_login":"cbazza"}}