Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
manucorporat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
manucorporat
12y ago
I add a comment in the README ;) Experiment only!! I as a Go developer, do not recomend to use this library in production or real world code. The Go language was designed to do not use expections, instead use the explicit error manag
62.
▲
by
manucorporat
12y ago
I am not trying to learn Go, I have been using it for years (without exceptions :) ) i believe clever hacks are usually helpful to open people's minds, don't you? another examples, (not sure if you know objective-c). primitive typ
63.
▲
by
manucorporat
12y ago
I totally agree! just to leave it clear, I did not create it to be even used, it's an experiment. I guess, it shows how powerful the panic(), recover(), defer can be, in my opinion much more than try/catch/finally. A practica
64.
▲
by
manucorporat
12y ago
yeah! I agree, it's just an experiment. Anyway, you could use the named return values to have a similar behaviour. func hello() (a int) { try.This(func() { a = couldPanic() }).Catch(_ try.E) { a = 0
65.
▲
Show HN: Try/Catch/Finally experiment in Go
(github.com)
29 points
by
manucorporat
12y ago
|
11 comments
66.
▲
Show HN: Gobuild.io – Godoc on steroids
(gobuild.io)
2 points
by
manucorporat
12y ago
|
2 comments
67.
▲
Show HN: Go-nude – Nudity detection with Go
(github.com)
16 points
by
manucorporat
12y ago
|
3 comments
68.
▲
by
manucorporat
12y ago
hahaha, do you think so? Using "Go!" can be confusing sometimes.
69.
▲
by
manucorporat
12y ago
thank you! I think I fixed it, does it work now?
70.
▲
by
manucorporat
12y ago
haha, as an old user of Martini, I was researching ways to improve the performance, I didn't find too much to fix without breaking stuff. Since the Golang versioning system is weak... haha obviously the main developer of Martini would
71.
▲
by
manucorporat
12y ago
I can explain that. First. Martini uses reflection, it's IMPOSSIBLE to make it as fast as Gin without removing all the reflection. Obviously it would break all the API, it would not be Martini anymore . Martini is not slow because a
72.
▲
by
manucorporat
12y ago
I will ask to the original creator of the benchmark suite to run the tests again. My development environment is very different, adding the results for Gin would mean that I should change all the results. Just a tip, to compare martini with
73.
▲
by
manucorporat
12y ago
Of course you could use Negroni with Gin. Anyway, Gin is a full-featured framework on top of httpRouter, I will explain this later (eventually I would like to merge both in the future, removing one abstraction layer and tunning the performa
74.
▲
by
manucorporat
12y ago
As author of Gin, I like Gin(the drink) and the martini framework, it was a clear decision to me. I did not know about the existence of codegangsta/gin, I just discovered it with your comment :) You are right, definitely it was not the
75.
▲
Show HN: Gin – Golang Martini-like web framework
(gin-gonic.github.io)
75 points
by
manucorporat
12y ago
|
29 comments