though said for education purpose, keep finding these boundary-pushings playful. I can recall early days arrested by "several ways to access private members in C++" lol
you_can::turn_off_the_borrow_checker
11–20 of 24 posts
Re: you_can::turn_off_the_borrow_checker
#12Macros can secretly add "unsafe" blocks into the code?
Re: you_can::turn_off_the_borrow_checker
#13though said for education purpose, keep finding these boundary-pushings playful. I can recall early days arrested by "several ways to access private members in C++" lol
I personally hate access controls in general since it always made be release a big sigh as a I was typing .getClass().getMethod()/getField() knowing that it hurts performance.
Re: you_can::turn_off_the_borrow_checker
#14Re: you_can::turn_off_the_borrow_checker
#15Earlier quoted context omitted.
I personally hate access controls in general since it always made be release a big sigh as a I was typing .getClass().getMethod()/getField() knowing that it hurts performance.
That kind of code doesn't have to hurt performance, as long as monomorphization, inlining or JITting are available to the toolchain. If every single method access is a virtual-table call, then yes, there's an "unnecessary" cost. But you shouldn't be writing high-level looking code in such a language if you care about that level of performance.
Re: you_can::turn_off_the_borrow_checker
#16Re: you_can::turn_off_the_borrow_checker
#17Re: you_can::turn_off_the_borrow_checker
#18Re: you_can::turn_off_the_borrow_checker
#19Earlier quoted context omitted.
Macros are just text in, text out, so yep
Rust macros are Token Trees and provide namespace hygiene, so not quite "text in, text out".
Re: you_can::turn_off_the_borrow_checker
#20Earlier quoted context omitted.
Macros are just text in, text out, so yep
Rust macros are Token Trees and provide namespace hygiene, so not quite "text in, text out".