-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I was just adapting some of my code to use the newest release and I noticed that there appears to be some type piracy with extending Base.open. Specifically it gets extended with
[12] open(portname::AbstractString, baudrate::Integer; mode, ndatabits, parity, nstopbits) in LibSerialPort at C:\Users\db9052\.julia\packages\LibSerialPort\zyrgR\src\LibSerialPort.jl:456which doesn't use any types defined by LibSerialPort (hence the piracy). While I can see that this is a convenience function (and currently doesn't cause problems), it's probably better not to do it since a string and an integer as inputs is quite generic.
An alternative might be to introduce a string macro/lightweight struct such that you can do
open(sp"/dev/ttyUSB0", 9600)I'd be happy to add the required code if that would help.
Metadata
Metadata
Assignees
Labels
No labels