Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ceceron
on April 20, 2023
|
parent
|
context
|
favorite
| on:
Defining interfaces in C++ with ‘concepts’ (C++20)
AFAIK Python [optional] type system supports both. The nominal types are the "common" types, while the protocols [1] are structural. It's quite cool, actually :)
[1]
https://peps.python.org/pep-0544/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://peps.python.org/pep-0544/