> Date: Thu, 2 Oct 2014 22:33:53 -0400
> From: linux...@thinkingdevices.com
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Uncondiftional , Conditional Program Jumps .
> 
> I was a bit surprised to see that LinuxCNC didn't have an unconditional 
> jump, ie a GOTO.  I chalked it up to LinuxCNC being written by 
> programmers, and the structured programming Nazis have beaten it into 
> their heads that GOTO statements are evil, and only stupid BASIC 
> spaghetti programmers use them.
> 

I tend to agree with you. bad use of goto is .. bad.
good and sparse use of goto is fine, possibly good.

Just look at our beloved HAL code ( coded in C )
you will see lots of goto statements for error cleanup/messages.
makes the code easy to follow and clean.

besides if someone wants to write 'bad' gcode with gotos that
work, who are we to tell them how to program :)

Chris M
                                          
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to