#prog #fsharp #python #conf
Сегодня Дон Сайм (создатель F#) научит Гвидо ван Россума (создатель Python) F#! Начало в 18:00.
https://twitter.com/dsymetweets/status/1420726094727090176?s=21
Сегодня Дон Сайм (создатель F#) научит Гвидо ван Россума (создатель Python) F#! Начало в 18:00.
https://twitter.com/dsymetweets/status/1420726094727090176?s=21
Twitter
Don Syme
Today is the day! In a few hours we'll kick off F# Focus Day, a free online event featuring speakers from around the world. Join me and guests for the F# Bonanza keynote, starting in 2.5hours. #dotnetconf #fsharp #python #csharp mobile.twitter.com/dsymetweets/st…
Some <| CoolStuff()
#prog #fsharp #python #conf Сегодня Дон Сайм (создатель F#) научит Гвидо ван Россума (создатель Python) F#! Начало в 18:00. https://twitter.com/dsymetweets/status/1420726094727090176?s=21
#fsharp #prog #conf #dotnet #python
Нарезали в плейлист: https://youtube.com/playlist?list=PLdo4fOcmZ0oV2uhlVIItfXxuRXsv-gXD5
И отдельно Дон учит Гвидо: https://youtu.be/e2J9PGC-K1E
Нарезали в плейлист: https://youtube.com/playlist?list=PLdo4fOcmZ0oV2uhlVIItfXxuRXsv-gXD5
И отдельно Дон учит Гвидо: https://youtu.be/e2J9PGC-K1E
YouTube
.NET Conf: Focus on F# - YouTube
Forwarded from Находки в опенсорсе
⚡️ Breaking news!
Python3.10 was released several hours ago (not so breaking news, right?). One of the main new features is pattern matching.
Today, I am releasing
Cool, isn't it? Today Python made one more giant step for better functional programming support. And no doubt, that
Check out our:
- Docs: https://returns.readthedocs.io/en/latest/pages/result.html#pattern-matching
- Release notes: https://github.com/dry-python/returns/releases/tag/0.17.0
- Python3.10 release notes: https://docs.python.org/3.10/whatsnew/3.10.html
Soon we will be adding pattern matching support for mypy as well. So, it would be type checked correctly.
Big day for #python!
Python3.10 was released several hours ago (not so breaking news, right?). One of the main new features is pattern matching.
Today, I am releasing
dry-python/returns@0.17.0 with full pattern matching support. Here's an example of how you can use it together with Result type:from returns.result import Failure, Success, safe
@safe
def div(first_number: int, second_number: int) -> int:
return first_number // second_number
match div(1, 0):
# Matches if the result stored inside `Success` is `10`
case Success(10):
print('Result is "10"')
# Matches any `Success` instance and binds its value to the `value` variable
case Success(value):
print('Result is "{0}"'.format(value))
# Matches if the result stored inside `Failure` is `ZeroDivisionError`
case Failure(ZeroDivisionError):
print('"ZeroDivisionError" was raised')
# Matches any `Failure` instance
case Failure(_):
print('The division was a failure')
Cool, isn't it? Today Python made one more giant step for better functional programming support. And no doubt, that
dry-python is the first one to officially support it.Check out our:
- Docs: https://returns.readthedocs.io/en/latest/pages/result.html#pattern-matching
- Release notes: https://github.com/dry-python/returns/releases/tag/0.17.0
- Python3.10 release notes: https://docs.python.org/3.10/whatsnew/3.10.html
Soon we will be adding pattern matching support for mypy as well. So, it would be type checked correctly.
Big day for #python!
Forwarded from Life of Tau
Twitter
Tushar Sadhwani
🐍Python news: CPython's main branch now compiles to webassembly! Thanks to @ethanhs and @ChristianHeimes Meaning: You can natively download and run Python in the browser. It's about a 5MB package right now. There's plans to make it smaller. Try it here: repl.ethanhs.me