--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
Personally I think it makes the code look ugly and confusing. I don't think a new user will grasp the concept at all.
How does it buffer for the USB? Is it blocking?
Personally I think it makes the code look ugly and confusing. I don't think a new user will grasp the concept at all.
On Sep 23, 2016 1:33 PM, "Alexander Brevig" <alexand...@gmail.com> wrote:
My 0x01 is that the << syntax is very different from the over all design philosophy of Wiring and Arduino. Plus, it's such an easy addition for those of us who wants the ability to stream like that. Features such like these tend to creep as you'll soon want formatting and maybe also the corresponding >> ?My vote is to hide this weird operator from the users.
On Fri, Sep 23, 2016 at 7:22 PM, Jack Rickard <ja...@evtv.me> wrote:
I've watched literally dozens of updates to Arduino IDE over the years. Long ago someone posted a template to do some basic streaming and I've had to copy this over countless programs.template<class T> inline Print &operator <<(Print &obj, T arg) { obj.print(arg); return obj; } //Lets us stream SerialUSBIt simply lets me send streams out a serial port.SerialUSB<<"\nLet's show some data:"<<somedata<<" and maybe some more data:"<<someMoreData<<"\n\n";I kind of thought someone at some point along the way would have added such very basic streaming to Arduino. ????Jack Rickard-------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
IT is hardly a "wierd" operator. Streaming is just all over C++ and the Arduino interface uses G++ and virtually IS C++ without STL. Obviously someone wanted it as this template was published probably four or five years ago and I know a number of people who don't start a program without it.Your opinions as to the aesthetics of C++ are of course of deep interest.Just curious why it has never been picked up. I guess I think I now know....Jack
If there's room for improved formatting support, I'd go for printf() every time. Unlike the clumsy C++ formatting, you can actually get an idea of what the output will look like from the source code.
On Sat, Sep 24, 2016 at 3:13 PM, Jack Rickard <ja...@evtv.me> wrote:
IT is hardly a "wierd" operator. Streaming is just all over C++ and the Arduino interface uses G++ and virtually IS C++ without STL. Obviously someone wanted it as this template was published probably four or five years ago and I know a number of people who don't start a program without it.Your opinions as to the aesthetics of C++ are of course of deep interest.Just curious why it has never been picked up. I guess I think I now know....Jack
----On Sat, Sep 24, 2016 at 4:00 AM, Paul Carpenter <pa...@pcserviceselectronics.co.uk> wrote:It is probably inherently just as blocking just like the Print it calls as most of the classes are.except to interupts--
Even basic Serial.Print and Serial.write are
On Friday, 23 September 2016 18:44:21 UTC+1, Tyler F wrote:How does it buffer for the USB? Is it blocking?
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
-----------------------------------------------------------------You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.