dev | defi & web3 | exploring the decentralized frontier
13 Followers
First impression of Uniswap v4: excited - they push things forward once again. Potential concern: fragmented liquidity? Hooks make it easy to customize pools, and singleton makes them significantly cheaper to deploy. Potential counterpoint: hooks make custom pools composable, so liquidity flows instead of fragments
The first answer was `if <element> in <slice>`, which is valid Python but not valid Go. The second was `if strings.Contains(<slice>, <element>)`. There is a `strings` package that has a `Contains` method, but it's to check if a substring is in the input string.
So I would suggest a healthy dose of skepticism when asking programming questions to this thing. Wondering what other types of questions I should try. What use cases are you actually getting useful results from?
Tried asking ChatGPT a programming question, and it gave me two suggestions that seemed plausible but were actually quite wrong. The prompt was `golang check if element in slice` (a slice is basically an array).