Re: [racket-users] Beginners question: implementing existing generics for existing structs

2017-02-02 Thread Ronie Uliana
Thank you, Jon and andmkent! Jon, I understand the reason. However, I guess it's possible to fix that kind of problem using precedence the same way some languages do with traits and mixins. :) Anyway, thank you again! -- You received this message because you are subscribed to the Google

[racket-users] Beginners question: implementing existing generics for existing structs

2017-01-31 Thread Ronie Uliana
Let's assume I have a struct that is not mine (like ddict [https://pkgn.racket-lang.org/package/ddict], or some of pfds [https://pkgn.racket-lang.org/package/pfds]). I'd like to implement generics for them that also are not mine :p (like data/collection from Alexis King). 1 - Is it possible? 2

Re: [racket-users] Re: What is the Racket equivalent to 'return' for early exit?

2016-11-22 Thread Ronie Uliana
Em segunda-feira, 21 de novembro de 2016 16:08:40 UTC-2, Leif Andersen escreveu: > Honestly, I personally like to use let/ec for this. I know it's still using > continuations, but it is much more lightweight, both syntactically and in > terms of run-time costs. > > (define (do-something) > >

Re: [racket-users] Digest for racket-users@googlegroups.com - 10 updates in 1 topic

2016-11-22 Thread Ronie Uliana
I made this macro for exactly for the same reason :) https://gist.github.com/ruliana/80d7bb46225a22a3682711ca8bd11a1d @JohnClements, I guess you have a point :) but I think David is mostly talking about what we call "Guard Clauses" (

[racket-users] A Racket talk in Rubyconf Brazil

2016-09-25 Thread Ronie Uliana
Hi, there! I gave a talk about Racket in Rubyconf Brazil yesterday (saturday 24). Here are the slides translated to English and here the original in Portuguese :) Not sure I gave the right

[racket-users] Re: Order of argument conventions, or ... conventions of argument ordering

2016-04-22 Thread Ronie Uliana
I like a lot this advice from Haskell: "... in Haskell it is not possible to alter objects, but there are many functions which return a somehow altered input object. This object should be the last parameter because then you can compose a sequence of operations on this object"

Re: [racket-users] Is it possible to implement generics to an already defined struct?

2016-03-06 Thread Ronie Uliana
Thank you, Andrew! :) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit

[racket-users] Is it possible to implement generics to an already defined struct?

2016-03-05 Thread Ronie Uliana
Sorry for the beginner question :( I'm learning Racket and it is an amazing language. Documentation is great, but I couldn't find this. Let's say I have a struct defined somewhere I have no control: (struct blah (x y)) Now, in my module, I have this generics: (define-generics my-thing