#overloading

Stiftung DatenschutzDS_Stiftung@social.bund.de
2024-10-29

Der Landesbeauftragte für #Datenschutz und Informationsfreiheit Baden-Württemberg @lfdi hat ein umfangreiches FAQ zu Deceptive Design Patterns auf #SocialMedia-Plattformen veröffentlicht, das u. a. erklärt, welche #DSGVO-Vorgaben einschlägig sind:
baden-wuerttemberg.datenschutz

#Overloading #Skipping #Stirring #Obstructing #Fickle #LeftInTheDark

रञ्जित (Ranjit Mathew)rmathew
2024-10-15
2024-03-31

On missing function #overloading in #Rust

a response with links to past queries on the topic, 20220913,
by notriddle,
users.rust-lang.org/t/why-rust

… while doing trait & generics exercises from “Tweede Golf” <will add link later>, the repeated pattern matching was getting on my nerves. So much #boilerplate💩 Really was longing for C++, even Java, then :rust: :omya_blank:

Yes I am more than happy to trade type inference for parameter type & arity based overloading.

#Rust_did_not_bring_joy in this case but busywork. May prefer to glue others’ work than write anything original, undecided.

#wart #programmingLanguage #tradeOff

Thomas Michlthomas_michl
2023-12-04

sagt, dass eine ständige und/oder anstelle eines kontinuierlichen Flusses ein guter Weg ist, die zu maximieren. Achte also immer darauf, dass kein kontinuierlicher Fluss entstehen kann.

says that constant and/or instead of a continuous flow is a good way to maximise . So always make sure that there is no .

2023-06-13

Thanks to all who contributed. I created 4 implementations based on this conversation:

1. A 2-arg function with branches on isinstance
2. A function with class-pattern matching on arg pack
3. Many functions using singledispatch
4. Many functions using multipledispatch [does not work in CE due to missing module]

The 4th one looks cleanest and is closest to C++, Java overloading. Don't know about performance.

Thanks again, comments welcome. 🙏

sigcpp.godbolt.org/z/bvP5547WG

#python #overloading

2023-06-12

Pythonistas, how does one **sanely** implement the following function interface?

f(float) -> int
f(str) -> str
f(int, str) -> int
f(list, float) -> str

My Python is 1/10. So, link to a solution (sketch) would be immensely helpful. 🙏

PS:
- Return types don't really matter but I show it for completeness
- setting aside questions like "why this interface?"
- omitted saying "overload" to avoid "can't really overload" responses, but there I said it. 😆

#question #python #overloading

2021-01-29

Sqrt - if a #subtype can be defined for the reals, to separate positive and negative reals, two functions can be written for the reals, one to return a real when parameter is + another to return a complex value when it is
Strongly typed
Case for #subtyping #overloading

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst