Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python3 function annotations for type hinting versus Boo

I've started on a medium-sized project in python, and I decided to use python 3 because I'm not using any large external libraries and py3k has some nice new syntactic sugar and more importantly function annotations. However, it seems like none of WingIDE, Pydev, or pycharm actually have any support for type hinting using function annotations. If I want something resembling static typing in python, is switching to boo a reasonable option?

like image 576
Josh Gao Avatar asked Apr 10 '26 06:04

Josh Gao


2 Answers

Boo is a great Python-like statically-typed language, but keep in mind that there more differences than just static typing. Actually you can also do duck typing on Boo.

Technically, I'd say the biggest difference is that Boo runs on Mono/.Net so the libraries and framework are totally different.

SharpDevelop and MonoDevelop both have good support for Boo. There's also a Visual Studio 2010 plugin that adds Boo support. It's still alpha, yet already usable.

like image 61
Mauricio Scheffer Avatar answered Apr 12 '26 19:04

Mauricio Scheffer


You could try with Cython. It is in some way CPython with static typing. See also this link

like image 28
joaquin Avatar answered Apr 12 '26 18:04

joaquin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!