Hacker News new | past | comments | ask | show | jobs | submit login

I find Copilot most useful for filling out debug statements such as this:

  println(“foo at {:x} is {:?}”, &foo as *const _ as usize, foo);
It almost always writes what I would have. How DARE I steal from open source contributors like that?!



Given how rust-y that looks, are you aware of `dbg!`? Debug printing + file name + line number and it does it properly to stderr


A human re-using some code according to its license is not the same as an automated machine snorting up all of the code on the platform ignoring any licenses.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: