Is it possible to have generic object members?

2021-08-02 Thread xigoi
What should this even do? What's the difference from `ImportantStuff[T]`?

Requests library

2021-08-02 Thread Yardanico
faster-than-requests isn't really a Nim library at all, it's a Python library made in Nim. You should take a look at which is in the Nim standard library and is pretty easy to use, although it isn't as feature-rich as Python's requests

Requests library

2021-08-02 Thread 04xhlnat
#ask I want to ask if there is a requests library in python, what about nim? besides faster-than-requests because I'm from kmrn I can't install it I've installed nimpy also can't Info:termux aarch64

Is it possible to have generic object members?

2021-08-02 Thread juancarlospaco
https://github.com/juancarlospaco/dik/blob/nim/src/dik.nim#L8-L15

Is it possible to have generic object members?

2021-08-02 Thread tsojtsoj
I am not sure, I understand this. Where exactly there is a generic object member? I want to do something like this: var c: ImportantStuff discard c.get[int](12) discard c.get[float](5) Run

Is it possible to have generic object members?

2021-08-02 Thread tsojtsoj
It's pretty much a shot in the dark. Is something like this possible: type ImportantStuff = object littleMember[T]: seq[T] func get[T](a: ImportantStuff, i: int): T = a.littleMember[T][i] Run ? (I know that this syntax doesn't work, but maybe t

Possible to have a reference in a seq of another type?

2021-08-02 Thread xioren
Right well I didn't think it would be of much benefit as I solved MY problem, but not the problem in the op. Basically figured out I can pass the dynamically changing string as an independent argument, rather than adding it to the seq of other strings. Not the way its done in the JavaScript, but

Mac GUI

2021-08-02 Thread kcvinu
Hi, Thank you for your expressions of sympathy. Well, Coca is different from Win32 API. Your current implementation seems very good. It took lot of boilerplate code from a Nim user. Thanks for your effort.

Nim GDB Youtube Video

2021-08-02 Thread mikra
utilize an online vid downloader. for instance "savethevideo.net", "savefrom.net" or others

Possible to have a reference in a seq of another type?

2021-08-02 Thread miran
> Well either way, I just had an epiphany and solved the issue lol. A nice thing to do in such cases is to write _how_ you solved it.

Whose Phone Number is This? Find Out Using a Reverse Phone Lookup Directory

2021-08-02 Thread jakariabd
Do you want to satisfy your curiosity on who owns a particular phone number or you want to locate a loved one who has not been picking your calls? There are various websites on the internet that offer reverse phone lookup services. These websites allows their subscribers to have access to detail

E-Commerce Services - Introduction, Trend and Impact

2021-08-02 Thread mdnur05
Electronic commerce is said as E-Commerce as it is the platform for doing business over the communication channel i.e. selling and buying movable and unmovable assets through electronic media, Internet is playing a great role in assisting and easy transactions for the e commerce activities. The

Possible to have a reference in a seq of another type?

2021-08-02 Thread hugogranstrom
> And as far as I know the reason why it's not used in Nim is not Types, but > Memory Layout. That is very true and it was actually this I had in my head. > With this reasoning you also may say, that Nim Variant Object is unsafe, > because unless you manually inspect its kind you don't know wha

Possible to have a reference in a seq of another type?

2021-08-02 Thread alexeypetrushin
It is Union / Algebraic Type, and it's Type Safe. With this reasoning you also may say, that Nim Variant Object is unsafe, because unless you manually inspect it's kind you don't know what it is. And as far as I know the reason why it's not used in Nim is not Types, but Memory Layout.

Possible to have a reference in a seq of another type?

2021-08-02 Thread hugogranstrom
Luckily Nim isn't Typescript. I don't see that as type-safe at all. Unless you manually inspect the list you would NOT know whether `list[0]` is a number, string or Whatewer, that isn't type-safe! In Nim you know exactly what type you get from `a[0]`, that is type-safety.