Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by anglebracket on Wednesday February 10, 2016 @07:16PM
(#11077308)
See https://github.com/JdeH/Transcrypt/blob/master/Transcrypt/de...
There are spaces before subscript operators, before `.method()` calls, and between `def name` and `(param1, param2)`.
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by StavrosK on Wednesday February 10, 2016 @09:33PM
(#11077875)
Yep, as a Python dev that's used to Python looking a certain way, this is very offputting. This is a great project, and I would hate for it to look "off" by something as trivial as Javascriptish whitespace and formatting conventions.
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by JdeH on Thursday February 11, 2016 @03:51AM
(#11079028)
You're encouraged to follow PEP8 completely for your Transcrypt apps and libs. As for interop with JS libs, following JS conventions is probably best, although some often use libs may acquire a PEP8 facade.
E.g.: https://github.com/JdeH/Transcrypt/blob/master/Transcrypt/mo...