Re:Gravity – An embeddable programming language
by int_19h on Saturday June 23, 2018 @09:05AM
(#17381089)
You might not use those features directly, but they're often used in library code. For example, attributes on functions are common technique for function decorators to store some associated data.
Re:Gravity – An embeddable programming language
by stinos on Saturday June 23, 2018 @09:12AM
(#17381111)
Fair point. Porting existing libraries is usually a bit of a struggle. Luckily for the particlar applications we use we get along just fine with the standard library subset, everything else is a mix of custom C++ and Python modules.
Depends on whom you ask I guess. The subset implemented is fairly big imo. Maybe I just got lucky but I never really missed something, and looking at the list of differences [1] that might be because most of them are rather obscure/fancy features which I usually tend to avoid anyway or don't even know exist (multiple inheritance, attributes for functions just to name some) or else can be worked around.
[1] http://docs.micropython.org/en/latest/pyboard/genrst/index.h...