L'ARTICOLO DAVANTI AI COGNOMI
sì o no?
✍🏻😎
#scrittura#writingtips#wearewriting
⏩ La risposta è NO, non si mette. Ma, eh, nella nostra lingua bisogna spesso distinguere.
✅ Sì davanti a nomi di personaggi famosi: il Manzoni, per esempio. Ma pare non ci vada (perché non è chiaro) se il nome del personaggio è familiare: Colombo invece che il Colombo. Poi, chi decide se ci sia più familiare Alessandro o Cristoforo?
✅ No davanti ai nomi di personaggi stranieri (Stevenson e non lo Stevenson). Forse perché non ci sono familiari?
✅ Si sosteneva che andasse messo davanti ai cognomi femminili (perché mai?), per esempio La Pausini e non Pausini. Per fortuna questa regola sta decadendo.
✅ L'articolo si metterebbe - ma non è una regola - davanti ai nomi di aziende (La Bialetti).
🚀La scelta migliore su cui molti concordano? Non mettere l'articolo davanti ai cognomi. Non si sbaglia mai.
@writingway
🙌Se ti è piaciuto questo post e pensi possa interessare ad altri, inoltralo cliccando sulla freccia a destra.
http://stackoverflow.com/questions/6434482/python-function-overloading
I know that Python does not support method #overloading, but I've run into a problem that I can't seem to solve in a nice Pythonic way.
I am making a #game where a character needs to shoot a variety of bullets, but how do I write different functions for creating these bullets? For example suppose I have a function that creates a bullet travelling from point A to B with a given speed.
https://www.python.org/dev/peps/pep-0443/
This PEP proposes a new mechanism in the #functools standard library module that provides a simple form of generic programming known as #single_dispatch#generic functions.
A generic function is composed of multiple functions implementing the same operation for different types. Which implementation should be used during a call is determined by the #dispatch algorithm. When the implementation is chosen based on the type of a single argument, this is known as #single_dispatch .
#overloading